

import 'package:flutter/cupertino.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:xim/common/util/device.dart';

class DividerCompose {
  static simpleDivider({
        BuildContext? context,
        Color? bgColor,
        double height=1,
        double? width,
        double gap = 6,
        double horizontalGap=0,
        double paddingGap=0}) {
    context ??= Get.context;
    bgColor ??= PlatformUtils.isDarkMode(context!)
        ? const Color(0xff2e2e2e)
        : const Color(0xffededed);
    return Container(
      margin: EdgeInsets.symmetric(vertical: gap, horizontal: horizontalGap),
      padding: EdgeInsets.symmetric(vertical: paddingGap),
      height: height,
      width: width??1.sw,
      decoration: BoxDecoration(
        color: bgColor,
      ),
    );
  }
}